home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / mail / transpor / ifmail23.z / ifmail23 / ifmail / ifcico / Makefile < prev    next >
Encoding:
Makefile  |  1994-05-08  |  7.3 KB  |  188 lines

  1. # Makefile for ifcico FidoNet mailer
  2. # Copyright (c) 1993, 1994 by Eugene G. Crosser
  3.  
  4. INCDIR = ../iflib
  5.  
  6. include ../CONFIG
  7.  
  8. # Include -DNOISEDEBUG to emulate noisy line. If defined, -jNNN option
  9. # causes approximately every NNNth received character to be damaged.
  10. #DEFINES = ${OPTS} -DNOISEDEBUG
  11. DEFINES = -DCICOLOG=${CICOLOG} \
  12.         -DMAILLOG=${MAILLOG} \
  13.         ${OPTS}
  14.  
  15. UTLIB = ../iflib/utlib.a
  16. OBJCICO = ifcico.o nodelist.o flagexp.o call.o callall.o answer.o \
  17.         modemstr.o openport.o opentcp.o dial.o session.o \
  18.         chat.o ttyio.o emsi.o ftsc.o yoohoo.o \
  19.         filelist.o xmsend.o xmrecv.o sendbark.o recvbark.o \
  20.         filetime.o m7recv.o m7send.o respfreq.o \
  21.         rdoptions.o emsidat.o wazoo.o janus.o \
  22.         zmsend.o zmrecv.o zmmisc.o zmrle.o \
  23.         openfile.o ftscprod.o dietifna.o \
  24.         nlindex.o openterm.o
  25. OBJSTAT = ifstat.o
  26. OBJINDEX = ifindex.o nodebld.o nlindex.o
  27. OBJROUTE = ifroute.o nodelist.o nlindex.o
  28. SRCS = lastmtime.c ifcico.c nodelist.c call.c callall.c answer.c \
  29.         modemstr.c openport.c opentcp.c dial.c session.c \
  30.         chat.c ttyio.c emsi.c ftsc.c yoohoo.c \
  31.         filelist.c xmsend.c xmrecv.c sendbark.c recvbark.c \
  32.         filetime.c m7recv.c m7send.c respfreq.c \
  33.         rdoptions.c ifstat.c emsidat.c wazoo.c janus.c \
  34.         zmsend.c zmrecv.c zmmisc.c zmrle.c \
  35.         openfile.c dietifna.c openterm.c \
  36.         nlindex.c nodebld.c ifindex.c ifroute.c
  37. HDRS = nodelist.h statetbl.h session.h ttyio.h emsi.h zmodem.h \
  38.         ftscprod.h nlindex.h
  39. OTHER = README GETTY.diff Makefile \
  40.         flaglex.l flagexp.y \
  41.         ftscprod.047 mkprod.awk
  42. ALL = ifcico ifstat ifindex ifroute
  43.  
  44. .c.o:
  45.     ${CC} -c ${CFLAGS} ${INCLUDES} ${DEFINES} $<
  46.  
  47. all:    ${ALL}
  48.  
  49. ftscprod.c:
  50.     ${AWK} -F, -f mkprod.awk ftscprod.??? >ftscprod.c
  51.  
  52. flagexp.c:    flagexp.y
  53.     ${YACC} flagexp.y
  54.     mv y.tab.c flagexp.c
  55.  
  56. flaglex.c:    flaglex.l
  57.     ${LEX} flaglex.l
  58.     mv lex.yy.c flaglex.c
  59.  
  60. flagexp.o:    flaglex.c flagexp.c
  61.  
  62. flaglex.o:    flaglex.c flagexp.c
  63.  
  64. install: all
  65.     ${INSTALL} -o ${OWNER} -g ${GROUP} -m ${SMODE} ifcico ${BINDIR}/ifcico
  66.     ${INSTALL} -o ${OWNER} -g ${GROUP} -m ${SMODE} ifstat ${BINDIR}/ifstat
  67.     ${INSTALL} -o ${OWNER} -g ${GROUP} -m ${SMODE} ifindex ${BINDIR}/ifindex
  68.     ${INSTALL} -o ${OWNER} -g ${GROUP} -m ${SMODE} ifroute ${BINDIR}/ifroute
  69.  
  70. tryc:    ifcico
  71.     >/tmp/ifdebug
  72.     echo /u/ifmail/ifcico/README >/usr/spool/fnet/outb/139c00e6.flo
  73.     echo 'FILES' >/usr/spool/fnet/outb/139c00e6.req
  74.     echo 'IFM*.*' >>/usr/spool/fnet/outb/139c00e6.req
  75.     ./ifcico -x9 -I../misc/config -alocalhost f230.n5020
  76.  
  77. lc:
  78.     wc -l ${SRCS} ${HDRS} ${OTHER}
  79.  
  80. clean:
  81.     rm -f *.o flaglex.c flagexp.c ftscprod.c core ${ALL} lastmtime \
  82.     iflog ifdebug filelist version.h Makefile.bak
  83.  
  84. ifcico:    ${OBJCICO} ${UTLIB}
  85.     ${CC} ${LDFLAGS} ${OBJCICO} ${UTLIB} -o ifcico ${LIBS}
  86.  
  87. ifstat:    ${OBJSTAT} ${UTLIB}
  88.     ${CC} ${LDFLAGS} ${OBJSTAT} ${UTLIB} -o ifstat ${LIBS}
  89.  
  90. ifindex: ${OBJINDEX} ${UTLIB}
  91.     ${CC} ${LDFLAGS} ${OBJINDEX} ${UTLIB} -o ifindex ${LIBS}
  92.  
  93. ifroute: ${OBJROUTE} ${UTLIB}
  94.     ${CC} ${LDFLAGS} ${OBJROUTE} ${UTLIB} -o ifroute ${LIBS}
  95.  
  96. lastmtime: lastmtime.c
  97.     ${CC} lastmtime.c -o lastmtime
  98.  
  99. tar:    ifcico.tar.z
  100.  
  101. ifcico.tar.z: ${SRCS} ${HDRS} ${OTHER}
  102.     ${TAR} cf - ${SRCS} ${HDRS} ${OTHER} | \
  103.     gzip >$@
  104.  
  105. filelist:    Makefile
  106.     BASE=`pwd`; \
  107.     BASE=`basename $${BASE}`; \
  108.     (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ifmail/$${BASE}/$$f; done) \
  109.     >filelist
  110.  
  111. config:
  112.     test -f config
  113.  
  114. version.h:    ${SRCS} ${HDRS} flaglex.l flagexp.y lastmtime ../CONFIG
  115.     echo 'char *version=${VERSION};' >version.h
  116.     echo 'char *copyright=${COPYRIGHT};' >>version.h
  117.     echo "char *reldate=\"`./lastmtime ${SRCS} ${HDRS} flaglex.l flagexp.y`\";" >>version.h
  118.  
  119. depend:    version.h
  120.     @mv -f Makefile Makefile.bak; \
  121.     sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \
  122.     ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \
  123.         >>Makefile; \
  124.     ${ECHO} '# Dependencies generated by make depend' >>Makefile; \
  125.     for f in ${SRCS}; \
  126.     do \
  127.         ${ECHO} "Dependencies for $$f:\c"; \
  128.         ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \
  129.         for h in `sed -n -e \
  130.             's/^#[     ]*include[     ]*"\([^"]*\)".*/\1/p' $$f`; \
  131.         do \
  132.             ${ECHO} " $$h\c"; \
  133.             if [ -r $$h ]; \
  134.             then \
  135.                 ${ECHO} " $$h\c" >>Makefile; \
  136.             else \
  137.                 ${ECHO} " ${INCDIR}/$$h\c" >>Makefile; \
  138.             fi; \
  139.         done; \
  140.         ${ECHO} " done."; \
  141.         ${ECHO} "" >>Makefile; \
  142.     done; \
  143.     ${ECHO} '# End of generated dependencies' >>Makefile
  144.  
  145. # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
  146. # Dependencies generated by make depend
  147. lastmtime.o:
  148. ifcico.o: ../iflib/getopt.h ../iflib/lutil.h ../iflib/xutil.h ../iflib/ftn.h nodelist.h ../iflib/config.h version.h
  149. nodelist.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/ftn.h ../iflib/config.h nodelist.h nlindex.h
  150. call.o: ../iflib/lutil.h ../iflib/xutil.h ../iflib/ftn.h nodelist.h ../iflib/config.h session.h
  151. callall.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/ftn.h nodelist.h ../iflib/config.h ../iflib/scanout.h
  152. answer.o: ../iflib/lutil.h ../iflib/ftn.h nodelist.h session.h ../iflib/config.h
  153. modemstr.o: ../iflib/config.h nodelist.h
  154. openport.o: ../iflib/lutil.h ../iflib/xutil.h ../iflib/ulock.h ttyio.h
  155. opentcp.o: ../iflib/lutil.h
  156. dial.o: ../iflib/lutil.h nodelist.h ../iflib/config.h
  157. session.o: ttyio.h ../iflib/lutil.h ../iflib/xutil.h ../iflib/ftn.h nodelist.h statetbl.h session.h ../iflib/config.h emsi.h
  158. chat.o: ../iflib/lutil.h ../iflib/xutil.h nodelist.h ../iflib/config.h
  159. ttyio.o: ../iflib/lutil.h ttyio.h
  160. emsi.o: ../iflib/xutil.h ../iflib/lutil.h ttyio.h session.h statetbl.h ../iflib/config.h emsi.h nodelist.h
  161. ftsc.o: ../iflib/ftn.h ../iflib/getheader.h ../iflib/xutil.h ../iflib/lutil.h session.h ttyio.h statetbl.h ../iflib/config.h
  162. yoohoo.o: statetbl.h ../iflib/xutil.h ../iflib/lutil.h ttyio.h session.h ftscprod.h ../iflib/config.h ../iflib/ftn.h emsi.h nodelist.h
  163. filelist.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/bwrite.h session.h ../iflib/ftn.h
  164. xmsend.o: session.h ../iflib/lutil.h ttyio.h statetbl.h
  165. xmrecv.o: session.h ttyio.h statetbl.h ../iflib/xutil.h ../iflib/lutil.h ../iflib/config.h
  166. sendbark.o: ../iflib/ftn.h ../iflib/lutil.h ttyio.h session.h statetbl.h
  167. recvbark.o: ../iflib/lutil.h ttyio.h session.h statetbl.h
  168. filetime.o:
  169. m7recv.o: statetbl.h ttyio.h ../iflib/lutil.h
  170. m7send.o: statetbl.h ttyio.h ../iflib/lutil.h
  171. respfreq.o: session.h ../iflib/xutil.h ../iflib/lutil.h ../iflib/config.h
  172. rdoptions.o: session.h ../iflib/xutil.h ../iflib/lutil.h nodelist.h ../iflib/config.h
  173. ifstat.o: ../iflib/getopt.h ../iflib/lutil.h ../iflib/xutil.h ../iflib/ftn.h ../iflib/config.h ../iflib/scanout.h version.h
  174. emsidat.o: ../iflib/ftn.h ../iflib/xutil.h ../iflib/lutil.h emsi.h session.h ../iflib/config.h
  175. wazoo.o: ../iflib/lutil.h ttyio.h session.h statetbl.h ../iflib/config.h emsi.h
  176. janus.o: ../iflib/lutil.h ttyio.h session.h statetbl.h ../iflib/config.h emsi.h
  177. zmsend.o: ttyio.h ../iflib/xutil.h ../iflib/lutil.h session.h zmodem.h emsi.h
  178. zmrecv.o: ../iflib/xutil.h ../iflib/lutil.h ttyio.h zmodem.h session.h ../iflib/config.h emsi.h
  179. zmmisc.o: ../iflib/xutil.h ../iflib/lutil.h ttyio.h zmodem.h
  180. zmrle.o: ../iflib/lutil.h ttyio.h zmodem.h
  181. openfile.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/config.h
  182. dietifna.o: ../iflib/lutil.h ttyio.h session.h emsi.h
  183. nlindex.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/ftn.h ../iflib/config.h nodelist.h nlindex.h
  184. nodebld.o: ../iflib/xutil.h ../iflib/lutil.h ../iflib/ftn.h ../iflib/config.h nodelist.h nlindex.h
  185. ifindex.o: ../iflib/getopt.h ../iflib/lutil.h nodelist.h nlindex.h ../iflib/config.h version.h
  186. ifroute.o: ../iflib/getopt.h ../iflib/lutil.h ../iflib/xutil.h ../iflib/ftn.h nodelist.h ../iflib/config.h version.h
  187. # End of generated dependencies
  188.